package com.ywm.vod.student;

import org.junit.Test;

import java.util.HashSet;

public class test {
    public static void main(String[] args) {
        student s1 = new student(1,"马冬梅");
        student s2 = new student(2,"马冬梅");
        System.out.println(s1==s2);
        System.out.println(s1.hashCode());
        System.out.println(s2.hashCode());
        HashSet<student> set = new HashSet<>();
        set.add(s2);
        set.add(s1);
        System.out.println(set);
    }
    @Test
    public void m1(){
        int a=98;
        boolean b=false;
        switch (a/10){
            case 9:System.out.println("111");
            case 8:System.out.println("222");
            case 7:System.out.println("000");
        }
    }
}
